home *** CD-ROM | disk | FTP | other *** search
/ Best of Shareware / Best of PC Windows Shareware 1.0 - Wayzata Technology (7111) (1993).iso / mac / DOS / UTILITY / ONETIME / ONETIME.DOC next >
Text File  |  1992-09-08  |  1KB  |  34 lines

  1.                       ONETIME.EXE   by Randy Laursen
  2.  
  3.     Entering this program into your AUTOEXEC.BAT file will, upon booting,
  4. run a batch file (or other executable file) just one day a week, on the
  5. first boot of the day.  The program takes up to four command line para-
  6. meters:  1) the day of the week, 2) the file to be executed (including
  7. its path and extension), and 3) & 4) one or two parameters to be passed to
  8. the executable file.  If no parameters are included, it defaults to 'MONDAY'
  9. and 'WEEKLY.BAT' (which must be in the path). This program also expects
  10. 'COMMAND.COM' to be in your C:\ directory.
  11.     On the designated day, the program checks for the existence of a file
  12. called 'TODAY' in your root directory.  If the file exists, it reads the
  13. file and checks the date, executing the batch file if the date is not
  14. current.  If the file doesn't exist, it creates it, writing the date in
  15. this file, then executes the batch file.  Upon subsequent boots during the
  16. same day, it checks the date in the file, finds the current date, and exits
  17. without executing the batch file.
  18.     This program was written in TURBO PASCAL version 6.
  19.  
  20.  
  21. Examples:
  22.  
  23. onetime
  24. onetime Sunday
  25. c:\util\onetime saturday c:\bat\runmenow.bat
  26. onetime sunday c:\bat\delfile.bat text1.doc text2.doc
  27. onetime Tuesday c:\dos\chkdsk.exe c: /f
  28.  
  29.  
  30. This program is free.  Send any questions or comments to me on
  31. AmericaOnLine, or on Compuserve.
  32.  
  33.                       Compuserve User ID # 71610,703
  34.